package com.pi.uc.enumerate;

public enum FollowStatus {
  UNFOLLOW(0, false, "未关注"),
  FOLLOW(1, true, "关注"),
  
  ;
  private int status;
  private boolean follow;
  private String desc;
  FollowStatus(int status, boolean follow, String desc) {
    this.status = status;
    this.desc = desc;
    this.follow = follow;
  }
  public int getStatus() {
    return status;
  }
  public boolean isFollow() {
    return follow;
  }
  public String getDesc() {
    return desc;
  }
  
  public static FollowStatus getFollowStatus(Boolean follow){
    if(null == follow || !follow){
      return UNFOLLOW;
    }
    return FOLLOW;
  }
}
